cmake_minimum_required(VERSION 2.8)
project(mp-rdr)
INCLUDE(FindPkgConfig)

pkg_check_modules(Player REQUIRED playerc++)
pkg_check_modules (OMPL REQUIRED ompl)

set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost REQUIRED COMPONENTS random serialization system)
find_library(GECODE_LIBRARY gecode)

add_executable(example0 example0.cc PathPlanner.cpp PlayerObject.cpp PlayerObjectManager.cpp PlayerProxy.cpp PeopleCircle.cpp Person.cpp CollisionRange.cpp VelocityTuning.cpp)

include_directories( ${Player_INCLUDE_DIRS} ${OMPL_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} )

target_link_libraries(example0 ${Player_LIBRARIES} ${OMPL_LIBRARIES} ${Boost_LIBRARIES} ${GECODE_LIBRARY})

if (CMAKE_COMPILER_IS_GNUCXX)
        set (CMAKE_CXX_FLAGS_PROFILE "-g -pg")
endif (CMAKE_COMPILER_IS_GNUCXX)

if (CMAKE_BUILD_TYPE)
        message ("Build type is ${CMAKE_BUILD_TYPE}")
endif (CMAKE_BUILD_TYPE)
